﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Common
{
    public class FileHelper
    {
        const string FILE_PATH = @"\Files\CloudStorage";

        public static void Upload()
        {

        }

        /// <summary>
        ///  打包压缩文件
        /// </summary>
        public static void Compress()
        {

        }

        /// <summary>
        ///  获取文件后缀名
        /// </summary>
        /// <param name="fileName">文件完整路径/文件名.后缀</param>
        /// <returns></returns>
        public static string GetExtension(string fileName)
        {
            var index = fileName.LastIndexOf(".");
            return fileName.Substring(index);
        }
    }
}
